import {STOREUSER,RESETUSER,RECEIVESHOPRATING,RECEIVESHOPINFO,RECEIVESHOPGOOD} from './action-type'

export default {
  //用户登录登出信息修改
  [STOREUSER] (state, userInfo){
    state.userInfo = userInfo
  },
  [RESETUSER] (state) {
    state.userInfo = {}
  },

  //商家相关信息的获取
  [RECEIVESHOPRATING] (state, rating){
    state.rating = rating
  },
  [RECEIVESHOPGOOD] (state, goods){
    state.goods = goods
  },
  [RECEIVESHOPINFO] (state, shopInfo) {
    state.shopInfo  = shopInfo
  }
}